import os,sys

new_file_name = sys.argv[1]#'ChangeName'#sys.argv[1]
new_file_name_lower = new_file_name.lower()

current_path = os.path.dirname(os.path.abspath(__file__))
current_path = os.path.join(os.path.dirname(current_path), 'src')

file_path1_old = os.path.join(current_path, 'libtriton_recommended.ldscript')
file_path1_new = os.path.join(current_path, 'libtriton_' + new_file_name_lower + '.ldscript')
os.rename(file_path1_old, file_path1_new)

file_path2_old = os.path.join(current_path, 'recommended.cc')
file_path2_new = os.path.join(current_path, new_file_name_lower + '.cc')
os.rename(file_path2_old, file_path2_new)

print('finish')
